package ner;

import java.util.ArrayList;
import java.util.List;

public class RecognitionUtil {


	public static int findBchInSentence(BookCharacter bch, List<String> words) {
		
		
		for(int i=0;i<words.size();i++){
			if(bch.getAliases().contains(words.get(i)))
				return i;
		}
		
		
		return -1;
	}

	
	public static List<Integer> findBchInSentenceAll(BookCharacter bch, List<String> words) {
		
		List<Integer> indexes=new ArrayList<Integer>();
		
		for(int i=0;i<words.size();i++){
			if(bch.getAliases().contains(words.get(i)))
				indexes.add(i);
		}
		
		
		return indexes;
	}
	
	
	
}
